<%
# 
# Copyright (C) 2006  Warren Konkel and Bounty Source, Inc.
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
# 
%>
<%=render(:partial => 'header')%>

<div style="clear: both;padding-top: 5px"></div>
<table class="prettytable">
  <tr>
    <th>Revision</th>
    <th>File</th>
    <% if @info[:file?] %>
      <th>Size</th>
    <% end %>
    <th>Age</th>
    <th>Log Entry</th>
  </tr>

  <% for entry in @history %>
    <tr <%=cycle('class="alternate"', '', :name => "task_list_row_class")%> >
      <td class="nowrap" style="text-align: center"><a href="<%=$bs_svn_browser[:url_base]%>/!revision/<%=entry[:revision]%>"><%=entry[:revision]%></a></td>
      <% if @info[:file?] %>
        <td class="nowrap"><a href="<%=$bs_svn_browser[:url_base]%>/!source/<%=entry[:revision].to_s + entry[:file]%>"><%=entry[:file]%></a></td>
        <td class="nowrap"><%=number_to_human_size(entry[:filesize])%></td>
      <% else %>
        <td class="nowrap"><a href="<%=$bs_svn_browser[:url_base]%>/!dirinfo/<%=entry[:revision].to_s + entry[:file]%>"><%=entry[:file]%></a></td>
      <% end %>
      <td class="nowrap"><%=time_ago_in_words(entry[:date])%></td>
      <td><%=format_user(entry[:author])%>: <%=entry[:log]%></td>
    </tr>
  <% end %>
</table>

<%=render(:partial => 'footer')%>
